import request from '@/utils/request';

//新增
export async function costAdd(params: any): Promise<any> {
  return request('/api/expenditure', {
    method: 'POST',
    data: params,
  });
}

//修改
export async function costEdit(params: any): Promise<any> {
  return request('/api/expenditure', {
    method: 'PUT',
    data: params,
  });
}
//删除
export async function costDelete(params: any): Promise<any> {
  return request('/api/expenditure', {
    method: 'DELETE',
    params: params,
  });
}
//列表
export async function costList(params: any): Promise<any> {
  return request('/api/expenditure', {
    method: 'GET',
    params: params,
  });
}
